package gulimall.mapper;

import gulimall.entity.SpuInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * spu信息 Mapper 接口
 * </p>
 *
 * @author HLF
 * @since 2022-04-23
 */
public interface SpuInfoMapper extends BaseMapper<SpuInfo> {

    @Update("update pms_spu_info set publish_status = #{spuUp} where id = #{spuId}")
    void updateSpuStatus(@Param("spuId") Long spuId, @Param("spuUp") int spuUp);
}
